package net.lijingye.education.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by LijingYe on 2016/4/4.
 */
@Entity
@Table(name = "ppt")
public class PPT implements Serializable {
    @Id
    @Column(name = "pptId")
    private int id;
    @Column(name = "title")
    private String title;
    @Column(name = "chapter")
    private String content;
    @Column(name = "time")
    private Date time;
    @Column(name = "count")
    private int downloadTime;
    @Column(name = "path")
    private String filePath;
    @OneToOne
    @JoinColumn(name = "classId")
    private Lesson lesson;

    public PPT() {
    }

    public PPT(int id, String title, String content, Date time, int downloadTime, String filePath, Lesson lesson) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.time = time;
        this.downloadTime = downloadTime;
        this.filePath = filePath;
        this.lesson = lesson;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getDownloadTime() {
        return downloadTime;
    }

    public void setDownloadTime(int downloadTime) {
        this.downloadTime = downloadTime;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Lesson getLesson() {
        return lesson;
    }

    public void setLesson(Lesson lesson) {
        this.lesson = lesson;
    }


}
